<?php
/**
 * Created by PhpStorm.
 * User: blue
 * Date: 2017/11/18
 * Time: 19:56
 */

namespace app\common\behavior;


use think\Session;

class CheckAuth
{
    use \traits\controller\Jump;
    public function run(&$params){
        //         判断是否登录,如没有登录退出
        if(!Session::get('uname')){
            $this->error('请先登录',url('auth/AdminLogin/login'));
        }
    }
}